text/template/parse.item.typ (field)

36 uses

	text/template/parse (current package)
		lex.go#L16: 	typ  itemType // The type of this item.
		lex.go#L24: 	case i.typ == itemEOF:
		lex.go#L26: 	case i.typ == itemError:
		lex.go#L28: 	case i.typ > itemKeyword:
		parse.go#L114: 		if token.typ != itemSpace {
		parse.go#L175: 	if token.typ != expected {
		parse.go#L184: 	if token.typ != expected1 && token.typ != expected2 {
		parse.go#L192: 	if token.typ == itemError {
		parse.go#L301: 	for t.peek().typ != itemEOF {
		parse.go#L302: 		if t.peek().typ == itemLeftDelim {
		parse.go#L304: 			if t.nextNonSpace().typ == itemDefine {
		parse.go#L352: 	for t.peekNonSpace().typ != itemEOF {
		parse.go#L368: 	switch token := t.nextNonSpace(); token.typ {
		parse.go#L395: 	switch token := t.nextNonSpace(); token.typ {
		parse.go#L427: 	if token := t.nextNonSpace(); token.typ != itemRightDelim {
		parse.go#L442: 	if token := t.nextNonSpace(); token.typ != itemRightDelim {
		parse.go#L459: 	if v := t.peekNonSpace(); v.typ == itemVariable {
		parse.go#L468: 		case next.typ == itemAssign, next.typ == itemDeclare:
		parse.go#L469: 			pipe.IsAssign = next.typ == itemAssign
		parse.go#L473: 		case next.typ == itemChar && next.val == ",":
		parse.go#L478: 				switch t.peekNonSpace().typ {
		parse.go#L487: 		case tokenAfterVariable.typ == itemSpace:
		parse.go#L494: 		switch token := t.nextNonSpace(); token.typ {
		parse.go#L548: 		if context == "if" && t.peek().typ == itemIf {
		parse.go#L552: 		} else if context == "with" && t.peek().typ == itemWith {
		parse.go#L616: 	if peek.typ == itemIf || peek.typ == itemWith {
		parse.go#L664: 	if t.nextNonSpace().typ != itemRightDelim {
		parse.go#L673: 	switch token.typ {
		parse.go#L700: 		switch token := t.next(); token.typ {
		parse.go#L730: 	if t.peek().typ == itemField {
		parse.go#L732: 		for t.peek().typ == itemField {
		parse.go#L766: 	switch token := t.nextNonSpace(); token.typ {
		parse.go#L784: 		number, err := t.newNumber(token.pos, token.val, token.typ)